//
//  ADNaviRouteInfo.h
//  Anda_Driver_Pro
//
//  Created by AnDa-Y on 2019/8/7.
//  Copyright © 2019 AnDa-Y. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@class ADMinLocationModel;

NS_ASSUME_NONNULL_BEGIN

@interface ADNaviRouteInfo : NSObject

///导航路径总长度(单位:米)
@property (nonatomic, assign) NSInteger routeLength;

///导航路径所需的时间(单位:秒)
@property (nonatomic, assign) NSInteger routeTime;

///路线方案的起点坐标
@property (nonatomic, assign) CLLocationCoordinate2D startLoc;

///路线方案的终点坐标
@property (nonatomic, assign) CLLocationCoordinate2D endLoc;

@property (nonatomic, strong) NSArray<ADMinLocationModel *> *routePoints;

///当前点的索引
@property (nonatomic, assign) NSInteger currentPointIndex;

//已经行驶
@property (nonatomic, assign) NSInteger routeDriveDistance;

///离终点剩余距离(单位:米)
@property (nonatomic, assign) NSInteger routeRemainDistance;

///离终点预估剩余时间(单位:秒)
@property (nonatomic, assign) NSInteger routeRemainTime;

@property (nonatomic, copy) NSString *routeInfo;

@end

@interface ADNaviRouteInfo (RemainCalculate)
- (NSString *)remainNaviDistance;
- (NSString *)remainNaviTime;
@end
NS_ASSUME_NONNULL_END
